<template>
    <div>
        第一个组件
        <button @click="openToast">帅哥</button>
    </div>
</template>

<script>
//导出默认对象
export default {
    data(){
        return {}
    },
    methods:{
        openToast(){
            this.$toast({
                message:"陶贼帅",
                position:"middle",
                duration:1000,
                // className:"gege",
                iconClass:"iconfont icon-yundongshuibei"
            })
        }
    }
}
</script>

<style>
    /* .gege{
        background-color: rebeccapurple !important;
    } */
</style>